package com.bom_samaritano.model;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class VOGeneric {

	public final String TABLE;
	public String COL_ID;

	private final Map<String, Object> map;

	public VOGeneric(String TABLE, String COL_ID) {
		map = new HashMap<String, Object>();
		this.TABLE = TABLE;
		this.COL_ID = COL_ID;
	}

	public void putParam(String name, Object value) {
		map.put(name, value);
	}

	protected void removeParam(String name) {
		map.remove(name);
	}

	public boolean isParamValid(String name) {
		return map.containsKey(name);
	}

	public Object getParam(String name) {
		return map.get(name);
	}

	public Map<String, Object> getMap() {

		return Collections.unmodifiableMap(map);
	}
}
